export function searchColumns() {
  return [
    {
      prop: 'channel',
      placeholder: '请输入渠道',
    },
    {
      prop: 'dateRange',
      type: 'daterange',
    },
  ]
}

export function tableColumns() {
  return [
    {
      width: 140,
      label: '日期',
      prop: 'date',
      formatter: row => this.$formatTime(row?.date),
    },
    {
      width: 120,
      label: '渠道',
      prop: 'channel',
    },
    {
      overHidden: true,
      width: 200,
      align: 'left',
      label: '影片名称',
      prop: 'film_name',
    },
    {
      align: 'left',
      label: '国家',
      prop: 'keywords_nae',
    },
    {
      align: 'right',
      width: 120,
      label: '观看次数',
      prop: 'view_count',
      formatter: row => `${row?.view_count}次`,
    },
    {
      align: 'right',
      width: 120,
      label: '观看时长(分)',
      prop: 'duration',
    },
    {
      align: 'right',
      width: 120,
      label: '影片购买次数',
      prop: 'purchase_count',
      formatter: row => `${row?.purchase_count}次`,
    },
    {
      align: 'right',
      label: '总金额',
      prop: 'amount_sum',
      formatter: row => `${row?.amount_sum / 10000}`,
    },
  ]
}
